package com.imooc.distributedemo.resume.ex2024.StrategyPattern;

public class Caculator {
    private Strategy strategy;

    public Caculator(Strategy strategy){
        this.strategy=strategy;
    }

    public float executeCaculat(int a,int b){
        return strategy.operate(a,b);
    }
}
